home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / March 96 / Re somGetGlobalEnvironment().1 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.3 KB  |  [TEXT/ttxt]

  1. Subject:     Re: somGetGlobalEnvironment()
  2. Sent:        3/12/96 8:57 AM
  3. Received:    3/12/96 9:11 AM
  4. From:        lamiraux@apple.com
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >At 6:41 AM 3/12/96, Arni McKinley wrote:
  9. >>What does the Global function
  10. >>
  11. >>Environment *ev = somGetGlobalEnvironment()
  12. >>
  13. >>really do and wy do we pass 'ev' around to everything in ODF if this call
  14. >>can get it so easily?
  15. >
  16. >That's a good question.  Our understanding is that somGetGlobalEnvironment
  17. >will either break or become relatively expensive when used in a threaded
  18. >environment.  The safe thing to do is to synthesize a new environment on
  19. >the stack.  We've created a new helper object for this purpose
  20. >(FW_SOMEnvironment), and now use it instead of somGetGlobalEnvironment. I
  21. >believe we created FW_SOMEnvironment after releasing 1.0d11, so don't
  22. >expect to find it in your current sources.
  23. >
  24. >Jim Lloyd
  25. >ODF Team
  26. >
  27.  
  28. We had another reason to pass around the ev: one day, when we have a 
  29. direct to SOM compiler, we hope to have ODF completly using SOM. That day 
  30. you will have to pass ev around like you have to do it now when directly 
  31. calling OpenDoc. Having the ev now will break less code later.
  32.  
  33. Henri Lamiraux
  34. ODF Team
  35.